<?php
	require_once('../Model/getconfig.php');
	$id=$_REQUEST['id'];
	$key=$_REQUEST['key'];
	//echo ("id: "+$id);
?>

<?php
	if ($key == 'STATE') {
?>	
	<select class="captial12pxblack" name="cmbDist" id="cmbDist" style="height:30px; width:300px;" >
		<option value="">-Select-</option>
	<?php
		$arrMenu=Model_cast::get_cast($id);
		foreach($arrMenu as $objMenu){ 
			$cast=$objMenu->getCast(); 
	?>								
			<option value="<?Php echo $cast ?>" ><?Php echo $cast ?></option>
	<?php
		}
	?>
	</select>
<?php
	}
	elseif ($key == 'MAT_STATE') {
?>	
	<select class="captial12pxblack" name="cmbDist" id="cmbDistID" style="height:30px; width:300px;" >
		<option value="">-Select-</option>
	<?php
		$arrMenu=Model_MatriDistrict::get_district($id);
		foreach($arrMenu as $objMenu){ 
			$district=$objMenu->getDistrict(); 
	?>								
			<option value="<?Php echo $district ?>" ><?Php echo $district ?></option>
	<?php
		}
	?>
	</select>
<?php
	}
	elseif ($key == 'MAT_DIST') {
?>	
	<select class="captial12pxblack" name="cmbCity" id="cmbCityID" style="height:30px; width:300px;" >
		<option value="">-Select-</option>
	<?php
		$arrMenu=Model_MatriCity::get_city($id);
		foreach($arrMenu as $objMenu){ 
			$city=$objMenu->getCity(); 
	?>								
			<option value="<?Php echo $city ?>" ><?Php echo $city ?></option>
	<?php
		}
	?>
	</select>
<?php
	}
?>	

